﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Detail.aspx.vb" Inherits="Prototype.Detail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            width: 300px;
            height: 225px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
    </p>
    <center>
    <p>
        <img alt="2banner" class="style2" 
            longdesc="http://localhost:49931/banner/greyufo.gif" 
            src="http://localhost:51498/banner/greyufo.gif" /></p>
        <p>
            &nbsp;</p>
        <p>
            &nbsp;</p>
        <p>
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" DataSourceID="MysteryEventDataSource1" 
            BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2">
            <Columns>
                <asp:BoundField DataField="EventName" HeaderText="EventName" 
                    SortExpression="EventName" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Picture">
                    <ControlStyle BorderStyle="None" Height="300px" Width="400px" 
                        CssClass="image" />
                </asp:ImageField>
                <asp:HyperLinkField DataNavigateUrlFields="WebSite" 
                    DataNavigateUrlFormatString="{0}" DataTextField="EventName" 
                    HeaderText="Link to Event" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="MysteryEventDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:MysteryEventConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:MysteryEventConnectionString.ProviderName %>" 
            SelectCommand="SELECT [EventName], [Description], [Picture], [WebSite] FROM [events] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            DataSourceID="CommentDataSource" AllowSorting="True" BackColor="White" 
            BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" 
            GridLines="Horizontal">
            <Columns>
                <asp:BoundField DataField="Author" HeaderText="Author" 
                    SortExpression="Author" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="CommentBody" HeaderText="CommentBody" 
                    SortExpression="CommentBody" />
                <asp:BoundField DataField="Event_fkID" HeaderText="Event_fkID" 
                    SortExpression="Event_fkID" />
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#333333" />
            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="White" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F7F7F7" />
            <SortedAscendingHeaderStyle BackColor="#487575" />
            <SortedDescendingCellStyle BackColor="#E5E5E5" />
            <SortedDescendingHeaderStyle BackColor="#275353" />
        </asp:GridView>
        <asp:SqlDataSource ID="CommentDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:MysteryEventConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:MysteryEventConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Author], [Title], [CommentBody], [Event_fkID] FROM [Comments] WHERE ([Event_fkID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="Event_fkID" QueryStringField="ID" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
    <p>
        UserName :&nbsp;&nbsp;&nbsp; 
        <asp:TextBox ID="tb_UserName" runat="server" CssClass="textEntry"></asp:TextBox>
    </p>
    <p>
        Title:&nbsp;&nbsp; &nbsp; 
        <asp:TextBox ID="tb_Title" runat="server" CssClass="textEntry"></asp:TextBox>
    </p>
    <p>
        <asp:TextBox ID="tb_CommentBody" runat="server" Height="178px" 
            TextMode="MultiLine" Width="352px"></asp:TextBox>
    </p>
    <p>
        <asp:Button ID="btn_AddComment" runat="server" Text="Add Comment" />
    </p>
    <p>
        &nbsp;</p></center>
</asp:Content>
